from PyQt5.Qt import *
import sys
class Mywindow(QMainWindow):
    def __init__(self):
        super(Mywindow, self).__init__()
        self.resize(800,600)
        self.w=QWidget()
        self.setCentralWidget(self.w)
        self.setupUi()
    def setupUi(self):
        self.scroll = QScrollArea()
        self.frame = QWidget(self)
        self.framelayout=QVBoxLayout()
        for filename in range(200):
            self.MapButton = QLabel(self.frame)
            self.MapButton.setPixmap(QPixmap(r"J:\美图\妹子图街拍\9d52c073gy1g0oxzztirdj20k00u1tc4.jpg"))
            self.framelayout.addWidget(self.MapButton)
        self.frame.setMinimumSize(600,2000)
        self.frame.setLayout(self.framelayout)
        self.vbox = QVBoxLayout()
        self.vbox.addWidget(self.scroll)
        self.scroll.setWidget(self.frame)
        self.w.setLayout(self.vbox)
if __name__ == '__main__':
    app=QApplication(sys.argv)
    mywin=Mywindow()
    mywin.show()
    sys.exit(app.exec_())